package com.java.simple.study.jvm.classloader;

/**
 * @author zhoujunlin
 * @date 2022年05月15日 21:15
 * @desc
 */
public class ClinitTest1 {

    static class Father {
        public static int A = 1;

        static {
            A = 2;
        }
    }

    static class Son extends Father {
        public static int B = A;
    }

    public static void main(String[] args) {
        // 先加载父类
        System.out.println(Son.B);
    }
}
